﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UrlAdd.aspx.cs" Inherits="CJJCH.Web.Manage.UrlAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Style/SystemCss.css" rel="stylesheet" type="text/css" />
    <script src="../JScript/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="../JScript/Calendar/WdatePicker.js" type="text/javascript"></script>
    <script src="../Script/JQcheck.js" type="text/javascript"></script>
    <script src="../ckeditor/ckeditor.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function checkform() {
            if (IsNothing($("#txtUrlString"), "请输入链接地址！")) {
                return false;
            }
            if (IsNothing($("#txtURLName"), "请输入名称！")) {
                return false;
            }
            if (IsNothing($("#dropType"), "请选择类别！")) {
                return false;
            }
            else if (checkdigit(($("#dropType")), "类别选择错误！"))
            {
                return false;
            }
            return true;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="BodyRight" style="width: 100%;">
        <div id="divtop" runat="server" style="">
            <uc:UrlTop ID="UrlTop" runat="server" IIndex="2" />
        </div>
        <%--<div runat="server" id="divHidden" style="display: none;">
            <asp:Label ID="lblKeyType" runat="server"></asp:Label>
        </div>--%>
        <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
            <tr>
                <td width="1" height="100%" class="Left">
                </td>
                <td height="100%" valign="top">
                    <table cellpadding="0" cellspacing="0" class="add_table" style="width: 98%; margin: 10px auto;"
                        bgcolor="#FFFFFF">
                        <tr>
                            <td width="120px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                class="style1">
                                链接地址：
                            </td>
                            <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                <asp:TextBox ID="txtUrlString" runat="server" Width="300" class="InputSearch_x1"></asp:TextBox>*&nbsp;&nbsp;&nbsp;形式为：http://www.jiankeyan.com
                            </td>
                        </tr>
                        <tr>
                            <td width="120px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                class="style1">
                                上传图片：
                            </td>
                            <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                <asp:FileUpload ID="fileImg" runat="server" class="InputSearch_x1" />
                            </td>
                        </tr>
                        <tr>
                            <td width="120px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                class="tdBg1">
                                名称：
                            </td>
                            <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                <asp:TextBox ID="txtURLName" runat="server" Width="300" class="InputSearch_x1"></asp:TextBox>*
                            </td>
                        </tr>
                        <tr>
                            <td width="120px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                class="style1">
                                类别：
                            </td>
                            <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle" class="style1">
                                <asp:DropDownList ID="dropType" runat="server" class="InputSearch_x1">
                                    <asp:ListItem Text="请选择" Value=""></asp:ListItem>
                                </asp:DropDownList>
                                *
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="padding: 2px 10px 2px 10px;" valign="middle" class="style2">
                                操作：
                            </td>
                            <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle" class="style2">
                                <asp:Button ID="btnSave" runat="server" Text="添 加" Style="padding: 2px 10px 3px 10px"
                                    Width="62px" CssClass="BtnSearch_x1" OnClick="btnSave_Click" />
                                &nbsp;
                                <asp:Button ID="btnBack" runat="server" Text="返 回" Style="padding: 2px 10px 2px 10px"
                                    Width="62px" CssClass="BtnSearch_x1" OnClick="btnBack_Click" />
                            </td>
                        </tr>
                    </table>
                </td>
                <td width="0" height="100%" class="Right">
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
